# -*- encoding=utf8 -*-
__author__ = "ASUS"

from airtest.core.api import *

auto_setup(__file__)





y=0
while y<10000:
    
    touch((850,240))
    sleep(7)
    touch((892,23))
    sleep(1)
    if   exists(Template(r"tpl1650349322055.png", threshold=0.9, record_pos=(0.338, 0.115), resolution=(960, 540))):
        touch(Template(r"tpl1650349322055.png", record_pos=(0.338, 0.115), resolution=(960, 540)))
        sleep(1.0)

    else :
        sleep(1.0)
    touch((869,447))
    sleep(1)
    touch((869,447))

    
    y=y+1   